<?php

/**
 * JingYao-backend
 *
 * @link     https://gitee.com/wang-zhihui-release/jingyao-backend
 * @apiDocument https://gitee.com/wang-zhihui-release/jingyao-backend/wikis/
 */

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class CreatePassCardFromAdminRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'id_card_number' => 'required',
            'identity' => 'required',
            'pass_card_photo' => 'required',
        ];
    }

    public function messages()
    {
        return [
            'id_card_number' => '身份证必填',
            'pass_card_photo' => '出入证必填',
        ];
    }
}
